
<%@ page import="org.tailor.Regions" %>
<html>
    <head>
      
        <meta name="layout" content="mainlayout" />
        <g:set var="entityName" value="${message(code: 'regions.label', default: 'Regions')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="col_middle">
                 
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        	<th><g:message code="regions.id.label" default="Id" /></th>
                            <th><g:message code="regions.regionID.label" default="Region ID" /></th>
                            <th><g:message code="regions.regionName.label" default="Region Name" /></th>
                            <th><g:message code="regions.description.label" default="Description" /></th>
                        	
                           
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${regionsInstanceList}" status="i" var="regionsInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${regionsInstance.id}">${fieldValue(bean: regionsInstance, field: "id")}</g:link></td>
                        
                            <td>${fieldValue(bean: regionsInstance, field: "regionID")}</td>
                        
                            <td>${fieldValue(bean: regionsInstance, field: "regionName")}</td>
                        
                            <td>${fieldValue(bean: regionsInstance, field: "description")}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${regionsInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
